<?php
header("Access-Control-Allow-Origin:*"); // 制定允许其他域名访问

header('Access-Control-Allow-Methods:POST'); // 响应类型

header('Access-Control-Allow-Headers:x-requested-with, content-type'); // 响应头设置


    include './base.php';
    $updateroomAddress = $_POST["updateroomAddress"];
    $status = $_POST["status"];
    $updateroomType = $_POST["updateroomType"];
    $updatePrice = $_POST["updatePrice"];
    $updateroomId = $_POST["updateroomId"];
    $sql = "update room set roomAddress = '$updateroomAddress',status = '$status',price = $updatePrice,roomType = $updateroomType where roomId = $updateroomId";
    mysql_query($sql);
    print_r("修改成功!");
?>